<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Index|首页</title>
</head>
<body>
    <h1>Hello SpringMVC!</h1>
    <a th:href="@{/test/1/admin}">测试路径占位符</a><br>
    <form th:action="@{/param1}">
        <input type="text" name="username" placeholder="username">
        <input type="password" name="password" placeholder="password">
        <input type="submit" value="提交">
    </form>
    <br>
    <a th:href="@{/param2(username='admin',password='123456')}">通过控制器方法形参获取参数</a><br>
    <a th:href="@{/param3(username='admin',password='123456')}">通过控制器方法形参获取参数</a><br>
    <a th:href="@{/header}">获取请求头中的User-Agent</a><br>
    <a th:href="@{/cookie}">获取Cookie的JSESSIONID</a><br>
    <h3>封装Pojo</h3>
    <form th:action="@{/pojo}" method="post">
        <input type="text" name="username" placeholder="username"><br>
        <input type="text" name="age" placeholder="age"><br>
        性别:<input type="radio" name="sex" value="男">男
        <input type="radio" name="sex" value="女">女
        <br>
        <input type="text" name="email" placeholder="email"><br>
        <input type="submit" value="提交">
    </form>
</body>
</html>